package day4.作业1026.作业01;

public class Pet {
    protected String name;
    protected int health;
    protected int love;
    public Pet() {
    }

    public Pet(String name, int health ,int love) {
        this.name = name;
        this.health = health;
        this.love = love;
    }
    protected void show(){
        System.out.println("我的名字是："+name+"健康值是："+health+"亲密度是："+love);
    }
    public void eat(){

        System.out.println("吃东西");
    }
}
